package com.itheima.a02mycharstream;

import java.io.FileWriter;
import java.io.IOException;

public class FileWriterDemo1 {
    public static void main(String[] args) throws IOException {
        //熟悉FileReader

        //创建对象
        FileWriter fw=new FileWriter("myio\\a.txt");
        //输出
        fw.write(97);
        fw.write("aubua阿苏吧你和",5,4);

        char[] c={'a','b','c','施'};
        fw.write(c,2,2);
        //释放资源
        fw.close();
    }
}
